package team.seekers.catering.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import team.seekers.catering.entity.dataobject.Ingredient;
import team.seekers.catering.entity.params.add.FoodAddPA;
import team.seekers.catering.entity.params.add.FoodUpdatePA;
import team.seekers.catering.entity.params.update.IngredientUpdatePA;
import team.seekers.catering.entity.vo.info.FoodInfoVO;
import team.seekers.catering.entity.vo.info.IngredientInfoVO;

import java.util.Map;

/**
 * <p>
 * 食材表 服务类
 * </p>
 *
 * @author hbc
 * @since 2022-01-21
 */
public interface IngredientService extends IService<Ingredient> {

    Map<String, Object> adminPageOrder(long current, long limit, QueryWrapper<Ingredient> wrapper);

    void setParamFromList(FoodAddPA foodAddPA);

    void setParamFromList(FoodUpdatePA foodUpdatePA);

    IngredientInfoVO get(String id);

    Long update(IngredientUpdatePA ingredientUpdatePA);
}
